#ifndef ENDVAL_H_INCLUDED
#define ENDVAL_H_INCLUDED

#include "enums.h"
#include "core.h"
namespace smil{
    class endval // either end!
    {
        public:
        //begin/end-value :
        //"indefinite"
        //Offset-value signed duration
        //Syncbase-value: element ID.begin/end offsetvalue
        //Event-value: element id.eventsymbol offsetvalue
        //Repeat-value: elementid.repeat(int)+offsetvalue
        //Accesskey-value: access keypress +offsetvalue
        //Media-Marker-value: id.marker("string")
        //Wallclock-sync-value: time_t
        duration offset;
        bool negative; // sign for offset values.
        // time_t wallclock;
        SMILbase * element;
        bool sync_end; // begin/end
        // int repeat;
        // string parse; // script based values
        endval();
        virtual ~endval();
        duration resolve();
        //protected:
        endtype type; /// don't set this externally, built-in setters use sanity checks!
    };
}


#endif // ENDVAL_H_INCLUDED
